package ru.isys.xml.template;

public final class Request
{
    private final String responseFirstPart ="\n<@request external=";
    private boolean isExternal=false;
    private final String responseSecondPart=" ; block>";
    public static final String CLOSE_TAG= "\n</@request>";
    String tag;
    
    public Request (boolean isExternal){
        this.tag=responseFirstPart+isExternal+responseSecondPart;
    }
    public String setExternal(boolean isExternal ){
        isExternal=isExternal;
        return this.tag=responseFirstPart+isExternal+responseSecondPart;
    }
    public boolean isExternal(){
        return this.isExternal;
    }
    public String getTag (){        
        return this.tag;
    }
}
